<ul class="product-list">
{foreach $products as $product}
	{capture assign=pnm}{$product->name()} {$manufacturers[$product@index]->name()} {$product->model()}{/capture}
	<li>
		<div class="product img-box">
			<a href="/product.php?productId={$product->id()}" style="">
			{if is_array($boatsMotors)}
				<img src="{$boatsMotors[$product@index].boat.image.url}" class='vcenter' style="width:{$boat.image[0].width}px; height:{$boat.image[0].height}px; margin-left:4px;" alt="{$pnm}" title="{$pnm}" />
				<img src="{$boatsMotors[$product@index].motor.image.url}" class='vcenter' style="width:{$motor.image[0].width}px; height:{$motor.image[0].height}px; margin-right:4px;" alt="{$pnm}" title="{$pnm}" />
				<div class='boatplusmotor'></div>
			{else}
				<img src="{if $productImages[$product@index]}{thumbnail width=250 height=150}{$productImages[$product@index]}{/thumbnail}{else}/images/fishing.jpg{/if}" alt="{$pnm}" title="{$pnm}" />
			{/if}
			</a>
			{if $newProducts[$product@index]}
				<div class='newProduct'></div>
			{/if}
		</div>
		<strong><a href="/product.php?productId={$product->id()}">{$pnm}</a></strong>
		{if $product->minPrice() != 0}
		<dl class='price'>
			<dt>
				{if $product->hasPrice()}
					{if $product->hasDiscount()}
						<span style="text-decoration: line-through;">
							{$product->priceNoDiscount()}
						</span>	
						&nbsp;&nbsp;
						<span class='newPrice'>
							{$product->price()}
						</span>
					{else}
						{$product->price()}
					{/if}
				{else}
					от {$product->minPrice()}
				{/if}
			</dt>
			<dd>руб</dd>
		</dl>
		{/if}
		<p><a href="/product.php?productId={$product->id()}">{$product->shortDescr()|strip_tags}</a></p>
		{if $product->minPrice() != 0}
			<a href="/product.php?productId={$product->id()}" class="btn buy {if !$product->hasPrice()}noprice{/if}"         data-product='{$product->id()}'>КУПИТЬ</a>
			<a href="/product.php?productId={$product->id()}" class="btn buy {if !$product->hasPrice()}noprice{/if} instant" data-product='{$product->id()}'>БЫСТРЫЙ ЗАКАЗ</a>
		{/if}
	</li>
{/foreach}
</ul>
